class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :login, :length => 20
      t.string :email
      
      t.string :crypted_password, :length => 64
      t.string :salt, :length => 64
      
      t.string :activation_token, :length => 64
      t.datetime :activated_at
      
      t.string :timezone
      t.string :localization
      
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
